export const showBox = function (top, left) {
  this.boxLeft = left;
  this.boxTop = top;
};

export const hideBox = function () {
  this.boxLeft = 0;
  this.boxTop = 0;
};

export const activeMenu = function () {
  return '';
};

class TableColumn {
  private data: object;
  constructor(key, value) {
    this.data = {};
    this.data[key] = value;
  }

  getData(key: undefined | string) {
    return key === undefined ? this.data : this.data[key];
  }

  setData(key, value) {
    this.data[key] = value;
  }
}